[WOMBAT-606] User session start time fix - #438
Open
ntai-arxiv wants to merge 2 commits into
Open
Conversation
ntai-arxiv
requested review from
a team,
bdc34 and
norbusan
and removed request for
norbusan
July 16, 2026 15:32
bdc34
reviewed
Jul 31, 2026
| # Floor start to whole seconds so epoch() is exact and the issued time never leads the clock; | ||
| # start_epoch and end both derive from this same floored instant. | ||
| start = datetime.now(tz=UTC).replace(microsecond=0) | ||
| start_epoch = int((start - datetime.fromtimestamp(0, tz=util.EASTERN)).total_seconds()) |
Contributor
There was a problem hiding this comment.
This seems a little strange. Use of EASTERN seem odd with epoch and then going back to UTC.
Consider something like
start = datetime.now(tz=timezone.utc).replace(microsecond=0)
start_epoch = int(start.timestamp())
end = start + timedelta(seconds=util.get_session_duration())
bdc34
approved these changes
Jul 31, 2026
bdc34
left a comment
Contributor
There was a problem hiding this comment.
Strange use of timezones but seems to work.
Consider using the minor suggested change.
bdc34
requested changes
Jul 31, 2026
bdc34
left a comment
Contributor
There was a problem hiding this comment.
Please get rid of the poetry.lockfile and pyprojec.toml changes
The types are dev time use only?
Package management on the production arxiv-auth can be a pain and I don't want to get involved in it for dev dependencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.